package com.hmall.cart;

import com.config.DefaultFeign;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.hmall.cart.mapper")
@SpringBootApplication
//开启OpenFeign功能,可以扫描到Feign客户端
@EnableFeignClients(basePackages = "com.hmall.api.client", defaultConfiguration = DefaultFeign.class)//defaultConfiguration = DefaultFeign.class开启配置类中的Feign日志配置
//告诉SpringCloud这个接口是一个Feign客户端，要调用com.hmall.api.client下的服务
//com.hmall.api.client是一个抽取的接口，里面定义了需要调用的接口方法
public class CartallApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartallApplication.class, args);
    }
}